package demo.collidingSpheres;

import engine.gameObject.camera.FlyoverCamera;
import engine.light.EnvironmentLight;
import engine.light.PointLight;
import engine.scene.Scene;

public class SimpleScene extends Scene{

	public SimpleScene() {
		super("simple");
	}
	
	@Override
	public void init() {
		FlyoverCamera camera = new FlyoverCamera();
		camera.setPosition(-29, 2.5f, 1.5f, 1.63f, -0.115f);
		setCurrentCamera(camera);
		
		addGameObject(new StaticSphere(9));
		
		for(int i = 0; i < 10; i++) {
			addGameObject(new DynamicSphere(0.2f));
		}
		
		EnvironmentLight l = new EnvironmentLight();
		l.setAmbient(0.3f, 0.3f, 0.3f);
		addLight(l);
		
		PointLight p = new PointLight();
		p.setDiffuse(0.5f, 0.5f, 0.5f);
		p.setLinearAttenuation(0.01f);
		addLight(p);
	}
}
